<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>killerbee.scapy_extensions</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="killerbee-module.html">Package&nbsp;killerbee</a> ::
        Module&nbsp;scapy_extensions
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="killerbee.scapy_extensions-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module scapy_extensions</h1><p class="nomargin-top"><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html">source&nbsp;code</a></span></p>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__kb_send"></a><span class="summary-sig-name">__kb_send</span>(<span class="summary-sig-arg">kb</span>,
        <span class="summary-sig-arg">x</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">inter</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">loop</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">realtime</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**kargs</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#__kb_send">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__kb_recv"></a><span class="summary-sig-name">__kb_recv</span>(<span class="summary-sig-arg">kb</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">store</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">prn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lfilter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">stop_filter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#__kb_recv">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbdev" class="summary-sig-name">kbdev</a>()</span><br />
      List KillerBee recognized devices</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbdev">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbsendp" class="summary-sig-name">kbsendp</a>(<span class="summary-sig-arg">pkt</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">inter</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">loop</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">iface</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">realtime</span>=<span class="summary-sig-default">None</span>)</span><br />
      Send a packet with KillerBee</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsendp">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbsrp" class="summary-sig-name">kbsrp</a>(<span class="summary-sig-arg">pkt</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">inter</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">iface</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">store</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">prn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lfilter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">realtime</span>=<span class="summary-sig-default">None</span>)</span><br />
      Send and receive packets with KillerBee</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsrp">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbsrp1" class="summary-sig-name">kbsrp1</a>(<span class="summary-sig-arg">pkt</span>,
        <span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">inter</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">iface</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">store</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">prn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lfilter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">realtime</span>=<span class="summary-sig-default">None</span>)</span><br />
      Send and receive packets with KillerBee and return only the first 
      answer</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsrp1">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbsniff" class="summary-sig-name">kbsniff</a>(<span class="summary-sig-arg">channel</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">iface</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">store</span>=<span class="summary-sig-default">1</span>,
        <span class="summary-sig-arg">prn</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">lfilter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">stop_filter</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>)</span><br />
      Sniff packets with KillerBee.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsniff">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbrdpcap" class="summary-sig-name">kbrdpcap</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">skip</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">nofcs</span>=<span class="summary-sig-default">False</span>)</span><br />
      Read a pcap file with the KillerBee library.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrdpcap">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbwrpcap" class="summary-sig-name">kbwrpcap</a>(<span class="summary-sig-arg">save_file</span>,
        <span class="summary-sig-arg">pkts</span>)</span><br />
      Write a pcap using the KillerBee library.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbwrpcap">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbrddain" class="summary-sig-name">kbrddain</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">count</span>=<span class="summary-sig-default">-1</span>,
        <span class="summary-sig-arg">skip</span>=<span class="summary-sig-default">0</span>)</span><br />
      Read a dain tree file with the KillerBee library Wraps the 
      DainTreeReader to return scapy packet object from daintree files.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrddain">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbwrdain" class="summary-sig-name">kbwrdain</a>(<span class="summary-sig-arg">save_file</span>,
        <span class="summary-sig-arg">pkts</span>)</span><br />
      Write a daintree file using the KillerBee library.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbwrdain">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbkeysearch" class="summary-sig-name">kbkeysearch</a>(<span class="summary-sig-arg">packet</span>,
        <span class="summary-sig-arg">searchdata</span>,
        <span class="summary-sig-arg">ispath</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">skipfcs</span>=<span class="summary-sig-default">True</span>,
        <span class="summary-sig-arg">raw</span>=<span class="summary-sig-default">False</span>)</span><br />
      Search a binary file for the encryption key to an encrypted packet.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbkeysearch">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbgetnetworkkey" class="summary-sig-name">kbgetnetworkkey</a>(<span class="summary-sig-arg">pkts</span>)</span><br />
      Search packets for a plaintext key exchange returns the first one 
      found.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbgetnetworkkey">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbtshark" class="summary-sig-name">kbtshark</a>(<span class="summary-sig-arg">store</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">*args</span>,
        <span class="summary-sig-arg">**kargs</span>)</span><br />
      Sniff packets using KillerBee and print them calling pkt.show()</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbtshark">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbrandmac" class="summary-sig-name">kbrandmac</a>(<span class="summary-sig-arg">length</span>=<span class="summary-sig-default">8</span>)</span><br />
      Returns a random MAC address using a list valid OUI's from ZigBee 
      device manufacturers.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrandmac">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbdecrypt" class="summary-sig-name">kbdecrypt</a>(<span class="summary-sig-arg">pkt</span>,
        <span class="summary-sig-arg">key</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>)</span><br />
      Decrypt Zigbee frames using AES CCM* with 32-bit MIC</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbdecrypt">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="killerbee.scapy_extensions-module.html#kbencrypt" class="summary-sig-name">kbencrypt</a>(<span class="summary-sig-arg">pkt</span>,
        <span class="summary-sig-arg">data</span>,
        <span class="summary-sig-arg">key</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">verbose</span>=<span class="summary-sig-default">None</span>)</span><br />
      Encrypt Zigbee frames using AES CCM* with 32-bit MIC</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbencrypt">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="DEFAULT_KB_CHANNEL"></a><span class="summary-name">DEFAULT_KB_CHANNEL</span> = <code title="11">11</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="DEFAULT_KB_DEVICE"></a><span class="summary-name">DEFAULT_KB_DEVICE</span> = <code title="None">None</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="log_killerbee"></a><span class="summary-name">log_killerbee</span> = <code title="logging.getLogger('scapy.killerbee')">logging.getLogger('scapy.killerbee')</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'killerbee'"><code class="variable-quote">'</code><code class="variable-string">killerbee</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="kbdev"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbdev</span>()</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbdev">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>List KillerBee recognized devices</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbsendp"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbsendp</span>(<span class="sig-arg">pkt</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">inter</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">loop</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">iface</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">realtime</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsendp">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Send a packet with KillerBee</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> - 802.15.4 channel to transmit/receive on</li>
        <li><strong class="pname"><code>inter</code></strong> - time to wait between tranmissions</li>
        <li><strong class="pname"><code>loop</code></strong> - number of times to process the packet list</li>
        <li><strong class="pname"><code>iface</code></strong> - KillerBee interface to use, or KillerBee() class instance</li>
        <li><strong class="pname"><code>verbose</code></strong> - set verbosity level</li>
        <li><strong class="pname"><code>realtime</code></strong> - use packet's timestamp, bending time with realtime value</li>
    </ul></dd>
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbsrp"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbsrp</span>(<span class="sig-arg">pkt</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">inter</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">count</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">iface</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">store</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">prn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lfilter</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">realtime</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsrp">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Send and receive packets with KillerBee</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> - 802.15.4 channel to transmit/receive on</li>
        <li><strong class="pname"><code>inter</code></strong> - time to wait between tranmissions</li>
        <li><strong class="pname"><code>count</code></strong> - number of packets to capture. 0 means infinity</li>
        <li><strong class="pname"><code>iface</code></strong> - KillerBee interface to use, or KillerBee() class instance</li>
        <li><strong class="pname"><code>store</code></strong> - wether to store sniffed packets or discard them</li>
        <li><strong class="pname"><code>prn</code></strong> - function to apply to each packet. If something is returned, it is
          displayed. Ex: ex: prn = lambda x: x.summary()</li>
        <li><strong class="pname"><code>lfilter</code></strong> - python function applied to each packet to determine if further 
          action may be done ex: lfilter = lambda x: x.haslayer(Padding)</li>
        <li><strong class="pname"><code>timeout</code></strong> - stop sniffing after a given time (default: None)</li>
        <li><strong class="pname"><code>verbose</code></strong> - set verbosity level</li>
        <li><strong class="pname"><code>realtime</code></strong> - use packet's timestamp, bending time with realtime value</li>
    </ul></dd>
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbsrp1"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbsrp1</span>(<span class="sig-arg">pkt</span>,
        <span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">inter</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">iface</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">store</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">prn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lfilter</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">realtime</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsrp1">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Send and receive packets with KillerBee and return only the first 
  answer</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbsniff"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbsniff</span>(<span class="sig-arg">channel</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">count</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">iface</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">store</span>=<span class="sig-default">1</span>,
        <span class="sig-arg">prn</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">lfilter</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">stop_filter</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbsniff">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sniff packets with KillerBee.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>channel</code></strong> - 802.15.4 channel to transmit/receive on</li>
        <li><strong class="pname"><code>count</code></strong> - number of packets to capture. 0 means infinity</li>
        <li><strong class="pname"><code>iface</code></strong> - KillerBee interface to use, or KillerBee() class instance</li>
        <li><strong class="pname"><code>store</code></strong> - wether to store sniffed packets or discard them</li>
        <li><strong class="pname"><code>prn</code></strong> - function to apply to each packet. If something is returned, it is
          displayed. Ex: ex: prn = lambda x: x.summary()</li>
        <li><strong class="pname"><code>lfilter</code></strong> - python function applied to each packet to determine if further 
          action may be done ex: lfilter = lambda x: x.haslayer(Padding)</li>
        <li><strong class="pname"><code>timeout</code></strong> - stop sniffing after a given time (default: None)</li>
    </ul></dd>
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbrdpcap"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbrdpcap</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">count</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">skip</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">nofcs</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrdpcap">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Read a pcap file with the KillerBee library. Wraps the PcapReader to 
  return scapy packet object from pcap files. This uses the killerbee 
  internal methods instead of the scapy native methods. This is not 
  necessarily better, and suggestions are welcome. Specify nofcs parameter 
  as True if for some reason the packets in the PCAP don't have FCS 
  (checksums) at the end.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Scapy packetlist of Dot15d4 packets parsed from the given PCAP 
          file.</dd>
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbwrpcap"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbwrpcap</span>(<span class="sig-arg">save_file</span>,
        <span class="sig-arg">pkts</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbwrpcap">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Write a pcap using the KillerBee library.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbrddain"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbrddain</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">count</span>=<span class="sig-default">-1</span>,
        <span class="sig-arg">skip</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrddain">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Read a dain tree file with the KillerBee library Wraps the 
  DainTreeReader to return scapy packet object from daintree files.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbwrdain"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbwrdain</span>(<span class="sig-arg">save_file</span>,
        <span class="sig-arg">pkts</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbwrdain">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Write a daintree file using the KillerBee library.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbkeysearch"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbkeysearch</span>(<span class="sig-arg">packet</span>,
        <span class="sig-arg">searchdata</span>,
        <span class="sig-arg">ispath</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">skipfcs</span>=<span class="sig-default">True</span>,
        <span class="sig-arg">raw</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbkeysearch">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Search a binary file for the encryption key to an encrypted 
  packet.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbgetnetworkkey"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbgetnetworkkey</span>(<span class="sig-arg">pkts</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbgetnetworkkey">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Search packets for a plaintext key exchange returns the first one 
  found.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbtshark"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbtshark</span>(<span class="sig-arg">store</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">*args</span>,
        <span class="sig-arg">**kargs</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbtshark">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sniff packets using KillerBee and print them calling pkt.show()</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbrandmac"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbrandmac</span>(<span class="sig-arg">length</span>=<span class="sig-default">8</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbrandmac">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns a random MAC address using a list valid OUI's from ZigBee 
  device manufacturers.</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbdecrypt"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbdecrypt</span>(<span class="sig-arg">pkt</span>,
        <span class="sig-arg">key</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbdecrypt">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Decrypt Zigbee frames using AES CCM* with 32-bit MIC</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="kbencrypt"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">kbencrypt</span>(<span class="sig-arg">pkt</span>,
        <span class="sig-arg">data</span>,
        <span class="sig-arg">key</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">verbose</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="killerbee.scapy_extensions-pysrc.html#kbencrypt">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Encrypt Zigbee frames using AES CCM* with 32-bit MIC</p>
  <dl class="fields">
    <dt>Decorators:</dt>
    <dd><ul class="nomargin-top">
        <li><code>@conf.commands.register</code></li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:12 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
